package org.halk.job_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.halk.job_admin.pojo.entity.Schedule;

/**
 * @Author haozhu7
 * @Date 2024/9/21 11:04
 **/
@Mapper
public interface ScheduleMapper extends BaseMapper<Schedule> {

    void updateStartedById(Integer id, int started);

    /**
     * 查询任务
     * @param scheduleId
     * @return
     */
    Schedule queryByScheduleId(String scheduleId);
}
